<template>
  <div class="errPage-container">
    <div icon="arrow-left" class="pan-back-btn" @click="back">
      <i class="el-icon-arrow-left"></i><span>返回</span>
    </div>
    <el-row class="content">
      <el-col>
        <div>
          <img src="@/assets/image/magnifier.png" />
        </div>
        <h2>您暂无访问权限！</h2>
        <h6>您可以通过点击下方申请按钮进行权限申请</h6>
        <el-button size="large" type="primary">申请权限</el-button>
      </el-col>
      <!-- <el-col :span="12">
        <img :src="errGif" width="313" height="428" alt="Girl has dropped her ice cream.">
      </el-col> -->
    </el-row>
  </div>
</template>

<script>
import errGif from '@/assets/401_images/401.gif'

export default {
  name: 'Page401',
  data() {
    return {
      errGif: errGif + '?' + +new Date()
    }
  },
  methods: {
    back() {
      if (this.$route.query.noGoBack) {
        this.$router.push({ path: '/' })
      } else {
        this.$router.go(-1)
      }
    }
  }
}
</script>

<style lang="scss" scoped>
  .errPage-container {
    width: 800px;
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
    overflow: hidden;
    .pan-back-btn {
      position: absolute;
      top: 30px;
      left: 30px;
      font-size: 36px;
      cursor: pointer;
      .el-icon-arrow-left {
        font-size: 30px;
        vertical-align: baseline;
      }
    }
    h2 {
      font-size: 36px;
      font-weight: 400;
    }
    h6 {
      font-size: 30px;
      color: rgb(215,215,215);
      font-weight: 100;
      margin: 50px 0;
      
    }
    .content {
      margin-top: 70px;
    }
    .el-button--large {
      width: 397px;
      height: 88px;
      font-size: 30px;
    }
    .pan-img {
      display: block;
      margin: 0 auto;
      width: 100%;
    }
    .text-jumbo {
      font-size: 60px;
      font-weight: 700;
      color: #484848;
    }
    .list-unstyled {
      font-size: 14px;
      li {
        padding-bottom: 5px;
      }
      a {
        color: #008489;
        text-decoration: none;
        &:hover {
          text-decoration: underline;
        }
      }
    }
  }
</style>
